-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Role} az role definition list: Use roleName filter when --name is a non-GUID string
#30587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
az role definition list: Add --role-name argument to filter with roleName propertyaz role definition list: Use roleName filter
|
|
az role definition list: Use roleName filteraz role definition list: Use roleName filter when --name is a non-GUID string
|
|

Related command
az role definition listDescription
Close #30579
With the ever-increasing number of built-in roles, the list returned by Role Definitions - List API is getting bigger and bigger, making
az role definition listcommand slower (#30579).This PR leverages
roleNamefilter to limit the number of role definitions returned by Role Definitions - List API.Actually, Azure CLI has been using
roleNameas a filter to call Role Definitions - List API in_resolve_role_idsince #508:azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py
Line 616 in e8efb79
though the behavior was not documented. We use
roleNamefilter inaz role definition listtoo.Testing Guide